package com.wzcl.app.service;

import com.wzcl.app.dao.model.ActivityGroup;
import com.wzcl.app.dao.model.AppUser;
import com.wzcl.app.model.dto.ActivityGroupDto;

import java.util.List;

public interface ActivityGroupService extends BaseService<ActivityGroup,ActivityGroupDto> {

    //发起拼团
    ActivityGroup createActivityGroup(AppUser user, Integer promotionId, Integer commodityId);

    //参加拼团
    ActivityGroup joinActivityGroup(AppUser appUser, Integer groupId);

    //获取成团
    List<ActivityGroup> getActivityGroupList(ActivityGroupDto activityGroupDto);
}
